package com.example.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot.entity.Roles;
import com.example.springboot.mapper.RolesMapper;
import com.example.springboot.service.IRolesService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import javax.annotation.Resource;

@Service
public class RolesServiceImpl extends ServiceImpl<RolesMapper, Roles> implements IRolesService {

    @Resource
    private RolesMapper rolesMapper;

    @Override
    public Page<Roles> findPage(Page<Roles> page,String name){
        return rolesMapper.findPage(page,name);
    }
}
